#! /bin/bash

case ${1} in 
    "start")
        /opt/SHMS-server/Server;
    ;;
    "stop")
        kill "$(cat /etc/SHMS-server/server.pid)";
    ;;
    "restart")
        kill "$(cat /etc/SHMS-server/server.pid)";
        sleep 1;
        /opt/SHMS-server/Server;
    ;;
esac
